<?php

class Application_Model_Difficoltas extends Zend_Db_Table_Abstract
{
    protected $_name = 'difficoltas';
    protected $_primary = 'diffId';
    protected $_rowClass = 'Application_Model_Difficolta';
    protected $_dependentTables = array('eventos');
    
    public function getDifficoltaById($id)
    {
        return $this->find($id)->current();
    }
    
    public function getDifficoltaByIdent($ident)
    {
         $select = $this->select()
                       ->where('diffIdent = ?', $ident);
        return $this->fetchRow($select);
    }
}

